import request from '~/utils/request';

export function getExpressAllList(data) {
    //物流公司全部列表
    return request({
        url: '/Public/GetExpressAllList',
        method: 'post',
        data,
    });
}

export function getExpressList(data) {
    //物流公司列表
    return request({
        url: '/Public/GetExpressList',
        method: 'post',
        data,
    });
}

export function getExpressInfo(data) {
    //物流公司单条记录
    return request({
        url: '/Public/GetExpressInfo?express_id=' + data,
        method: 'get',
        data,
    });
}

export function saveExpressInfo(data) {
    //物流公司保存
    return request({
        url: '/Public/SaveExpressInfo',
        method: 'post',
        data,
    });
}

export function setExpressState(data) {
    //物流公司状态设置
    return request({
        url: '/Public/SetExpressState',
        method: 'post',
        data,
    });
}

export function getExpressCodeList(data) {
    //物流公司代码查询
    return request({
        url: '/Public/GetExpressCodeList',
        method: 'post',
        data,
    });
}

export function getAddressList(data) {
    //物流地址列表
    return request({
        url: '/Public/GetAddressList',
        method: 'post',
        data,
    });
}

export function getAddressInfo(data) {
    //物流地址单条记录
    return request({
        url: '/Public/GetAddressInfo?address_id=' + data,
        method: 'get',
        data,
    });
}

export function saveAddressInfo(data) {
    //物流地址保存
    return request({
        url: '/Public/SaveAddressInfo',
        method: 'post',
        data,
    });
}

export function setAddressState(data) {
    //物流地址状态设置
    return request({
        url: '/Public/SetAddressState',
        method: 'post',
        data,
    });
}

export function getDefaultAddress(data) {
    //物流地址状态设置
    return request({
        url: '/Public/GetDefaultAddress',
        method: 'post',
        data,
    });
}

export function getBankList() {
    //银行列表
    return request({
        url: '/Public/GetBankList',
        method: 'post',
    });
}

export function getBankCardList(data) {
    //银行卡列表
    return request({
        url: '/Public/GetBankCardList',
        method: 'post',
        data,
    });
}

export function getBankCardInfo(data) {
    //银行卡单条记录
    return request({
        url: '/Public/GetBankCardInfo?bank_card_id=' + data,
        method: 'get',
        data,
    });
}

export function saveBankCardInfo(data) {
    //银行卡保存
    return request({
        url: '/Public/SaveBankCardInfo',
        method: 'post',
        data,
    });
}
export function setPublicCardState(data) {
    //银行卡状态设置
    return request({
        url: '/Public/SetPublicCardState',
        method: 'post',
        data,
    });
}

//协议分页列表
export function getAgreementList(data) {
    return request({
        url: '/Public/GetAgreementList',
        method: 'post',
        data,
    });
}

//获取协议单条记录
export function getAgreementInfo(data) {
    return request({
        url: '/Public/GetAgreementInfo',
        method: 'post',
        data,
    });
}

//保存协议
export function saveAgreementInfo(data) {
    return request({
        url: '/Public/SaveAgreementInfo',
        method: 'post',
        data,
    });
}

//签约协议分页列表
export function getAgreementLogList(data) {
    return request({
        url: '/Public/GetAgreementLogList',
        method: 'post',
        data,
    });
}

//获取签约协议单条记录
export function getAgreementLogInfo(data) {
    return request({
        url: '/Public/GetAgreementLogInfo',
        method: 'post',
        data,
    });
}

//设置附件状态
export function setPuFileState(data) {
    return request({
        url: '/Public/SetPuFileState',
        method: 'post',
        data,
    });
}

//获取定位城市
export function getGeoCity(data) {
    return request({
        url: '/Public/GetGeoCity',
        method: 'post',
        data,
    });
}

//首字母排序的开放城市列表
export function getCityListOfOpen() {
    return request({
        url: '/Public/GetCityListOfOpen',
        method: 'post',
    });
}

//热门开放城市列表
export function getPopularCityListOfOpen() {
    return request({
        url: '/Public/GetPopularCityListOfOpen',
        method: 'post',
    });
}
//获取卡包
export function GetAllBankCard() {
    return request({
        url: '/Public/GetAllBankCard',
        method: 'post',
    });
}
//添加银行卡
export function SaveBankCardInfo(data) {
    return request({
        url: '/Public/SaveBankCardInfo',
        method: 'post',
        data,
    });
}
//获取银行
export function GetBankList() {
    return request({
        url: '/Public/GetBankList',
        method: 'post',
    });
}
